package org.opu.doc2db.document.txtdoc;

import java.io.File;
import java.io.IOException;

import org.opu.doc2db.document.datadocument.Document;
import org.opu.doc2db.document.datadocument.io.DefaultDocumentReader;
import org.opu.doc2db.document.txtdoc.io.TextDocumentWriter;


/**
 * @author smart
 *
 */
public class App {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		DefaultDocumentReader r = new DefaultDocumentReader();
		Document doc = r.parseDocument(new File("/home/yura/Desktop/in.xml"));
		
		TextDocumentWriter tw = new TextDocumentWriter(doc);
		tw.write(new File("/home/yura/Desktop/out.txt"));
		
		System.out.println("done");// done 
	}

}
